package com.example.collegevice.service;

import com.example.pojo.Account;
import com.example.pojo.Teacher;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface TeacherService {
    void add(Teacher teacher);
    PageInfo<Teacher> selectPage(Teacher teacher, Integer pageNum, Integer pageSize);
    void updateById(Teacher teacher);
    void deleteById(Integer id);
    Teacher selectById(Integer id);
    void updatePassword(Account account);
    Account login(Account account);

    List<Teacher> selectAll();
}
